package com;

import com.controller.MyController;
import com.entity.TestStudent;
import com.service.TestStudentService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * Project: tobe-better-coder
 * Package: PACKAGE_NAME
 *
 * @author : Mr.xu
 * @date : 2023/9/24 21:25
 */
@SpringBootApplication
public class MybatisApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(MybatisApplication.class, args);
//        for (String beanDefinitionName : configurableApplicationContext.getBeanDefinitionNames()) {
//            System.out.println(beanDefinitionName);
//        }
//        MyController controller = (MyController) configurableApplicationContext.getBean(MyController.class);
//        TestStudent testStudent = new TestStudent();
//        testStudent.setId("1");
//        testStudent.setName("王五");
//        System.out.println(controller.updateById(testStudent));

    }
}